package com.tust.app.service;

import com.tust.app.domain.News;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

public interface NewsService {
    /**
     * 最新文章列表
     * @return
     */
    public List<News> newsList() throws Exception;
    List<News> serach(String title) throws Exception;
    Integer addArticle(News news) throws Exception;
    News findNewsById(Integer id) throws Exception;
    boolean modifyNews(News news) throws Exception;
    boolean delNews(Integer id) throws Exception;

}
